System.Collections.ICollection.CopyTo Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private void ICollection.CopyTo(
	Array array,
	int index
)
Visual Basic (Declaration)
Private Sub System.Collections.ICollection.CopyTo ( _
	array As Array, _
	index As Integer _
) Implements ICollection.CopyTo
Visual C++
private:
virtual void System.Collections.ICollection.CopyTo (
	Array^ array, 
	int index
) sealed = ICollection::CopyTo

Parameters

array
Array
Array to copy to.
index
Int32
Starting index in array to copy to.

See Also